﻿using BCCommon;
using BCDto.Sim.Admin.Admin;
using BCDto.TMS.Packing.PackingConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.Packing.PackingConfig
{
    /// <summary>
    /// 包装材料配置
    /// </summary>
    public interface IPackingConfigService
    {
        /// <summary>
        /// 添加包装材料配置
        /// </summary>
        /// <param name="requestDto">包装材料配置请求信息</param>
        /// <param name="admin">管理员信息</param>
        /// <returns></returns>
        PackingConfigDto Add(PackingConfigRequestDto requestDto, AdminDto admin);

        /// <summary>
        /// 修改包装材料配置
        /// </summary>
        /// <param name="putDto">包装材料配置修改信息</param>
        /// <param name="packingConfigId">包装材料配置Id</param>
        /// <param name="admin">管理员信息</param>
        /// <returns></returns>
        PackingConfigDto Update(AdminDto admin, int packingConfigId, PackingConfigPutDto putDto);

        /// <summary>
        /// 获取包装材料配置记录
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingCategoryConfigId">包装材料分类配置Id</param>
        /// <param name="packingTitle">包装材料标题</param>
        /// <param name="enabled">是否启用</param>
        /// <param name="createStartDate">创建开始日期</param>
        /// <param name="createEndDate">创建结束日期</param>
        /// <param name="pageIndex">页号</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        PageableList<PackingConfigViewDto> Query(AdminDto admin, int? packingCategoryConfigId, string packingTitle, bool? enabled, DateTime? createStartDate, DateTime? createEndDate, int pageIndex, int pageSize);
        /// <summary>
        /// 获取包装材料配置
        /// </summary>
        /// <param name="packingConfigId">包装材料配置Id</param>
        PackingConfigDto Get(int packingConfigId);
        /// <summary>
        /// 删除包装材料配置记录
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingConfigId">包装材料配置Id</param>
        void Delete(AdminDto admin, int packingConfigId);

        /// <summary>
        /// 获取包装材料配置记录列表
        /// </summary>
        /// <param name="packingCategoryConfigId">包装材料分类配置Id</param>
        /// <param name="packingTitle">包装材料标题</param>
        /// <param name="enabled">是否启用</param>
        /// <returns></returns>
        IEnumerable<PackingConfigDto> GetList(int? packingCategoryConfigId, string packingTitle, bool? enabled);


        /// <summary>
        /// 获取包装材料配置记录列表
        /// </summary>
        /// <param name="agentRecordId">代理商ID</param>
        /// <param name="packingCategoryConfigId">包装材料分类配置Id</param>
        /// <param name="provinceCode">省份编码</param>
        /// <param name="cityCode">市编码</param>
        /// <param name="countyCode">区县编码</param>
        /// <returns></returns>
        IEnumerable<PackingConfigViewDto> GetList(long? agentRecordId, int? packingCategoryConfigId, string provinceCode, string cityCode, string countyCode);

        /// <summary>
        /// 启用/禁用包装材料配置
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="packingConfigId">包装材料配置Id</param>
        /// <param name="enabled">是否启用</param>
        /// <returns></returns>
        PackingConfigDto UpdateEnabled(AdminDto admin, int packingConfigId, bool enabled);
    }
}
